import request from '@/utils/request'
// 获取图片list
export function getTalk(params) {
  return request({
    url: '/talk/list/',
    method: 'get',
    params:params
  })
}

//新增
export function addTalk(data) {
  return request({
    url: '/talk/',
    method: 'post',
    data:data
  })
}

//删除
export function delTalk(id) {
  return request({
    url: '/talk/'+id,
    method: 'delete',
  })
}

//修改
export function updateTalk(data){
  return request({
    url:'/talk/',
    method:'put',
    data:data
  })
}
//查询详细图片title
export function getTalkTitle(id){
  return request({
    url:'/talk/' + id,
    method:'get',
  })
}